import { Sequelize } from "sequelize";

// 方法 3: 分别传递参数 (其它数据库)
const sequelize = new Sequelize("share_zkh", "root", "112358", {
  host: "localhost",
  dialect: "mysql",
});

// try {
//   await sequelize.authenticate();
//   console.log("Connection has been established successfully.");
// } catch (error) {
//   console.error("Unable to connect to the database:", error);
// }

export default sequelize;
